/*
Copyright (C) 2008 raohmaru <http://www.raohmaru.com>

This file is part of Raohmaru AS3 Framework.

Raohmaru AS3 Framework is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Raohmaru AS3 Framework is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with Raohmaru AS3 Framework.  If not, see <http://www.gnu.org/licenses/>.
*/

package jp.raohmaru.net.statistics 
{

/**
 * La interfaz de IMedition proporciona los métodos y propiedades que requiere una clase de medición.
 * @author raohmaru
 * @version 1.0
 */
public interface IMedition
{
	/**
	 * La URL que se va a solicitar.
	 */
	function get url() : String;
	function set url(value : String) : void;
	
	/**
	 * Define o obtiene el estado del objeto de medición. Si es <code>false</code>, se desactivarán las llamadas a <code>send()</code>
	 */
	function get enabled() : Boolean;
	function set enabled(value : Boolean) : void;

	/**
	 * Define si debe mostrarse el estado cada petición realizada con <code>send()</code> en la consola de salida.
	 */
	function get log() : Boolean;
	function set log(value : Boolean) : void;
	
	/**
	 * Define el método de envío de peticiones al servidor.
	 * @param data Datos a enviar junto a la petición.
	 */
	function send(data : Object) : void;
}
}